package 设计模式.策略模式.v1;

public abstract class Duck {

	public Duck() {
	}

	//叫声的行为
	public void Quack() {
		System.out.println("~~gaga~~");
	}

	public abstract void display();
	//	游泳方法
	public void swim() {
		System.out.println("~~im swim~~");
	}
	
	
	
	//飞的行为
	public void Fly() {
			System.out.println("~~im fly~~");
		}
	
	
	
	
	
	
	
	
	
	
	
	
	
}
